﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace centraldba_library.Data
{
    /// <summary>
    /// Represents a Microsoft SQL Server that is registered with an MSX server
    /// (Used to be centraldba_dbrestore_utility.Data.MyServer)
    /// </summary>
    public class server
    {
        private string _sql_type_ro, _sql_description, _sql_server_name, _sql_product_version;
        bool _is_visible;

        public string sql_type_ro
        {
            get { return this._sql_type_ro; }
            set { if (this._sql_type_ro != value) { this._sql_type_ro = value; } }
        }

        public string sql_description
        {
            get { return this._sql_description; }
            set { if (this._sql_description != value) { this._sql_description = value; } }
        }

        public string sql_server_name
        {
            get { return this._sql_server_name; }
            set { if (this._sql_server_name != value) { this._sql_server_name = value; } }
        }

        public string sql_product_version
        {
            get { return this._sql_product_version; }
            set { if (this._sql_product_version != value) { this._sql_product_version = value; } }
        }

        public string env_server_name
        {
            get { return "(" + sql_type_ro + ") " + sql_server_name; }
        }

        public bool is_visible
        {
            get { return _is_visible; }
            set { _is_visible = value; }
        }
    }
}
